package br.com.poliwar.view {
	import br.com.poliwar.view.events.TelaCadastroEvent;
	import br.com.poliwar.view.events.TelaConectarEvent;
	import flash.events.MouseEvent;
	/**
	 * ...
	 * @author Ricardo Teixeira
	 */
	public class TelaConectar extends ConectaSWC {
		
		public function TelaConectar() {
			this.btConectar.addEventListener (MouseEvent.CLICK, onClickConectar);
		}
		
		private function onClickConectar(e:MouseEvent):void {
			var evento:TelaConectarEvent = new TelaConectarEvent (TelaConectarEvent.CONECTAR, this.campoHost.text);
			this.dispatchEvent (evento);
		}
		
	}

}